﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using DTOService;

namespace DAOService
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IKhachHang" in both code and config file together.
    [ServiceContract]
    public interface IDAOKhachHang
    {
        [OperationContract]
        KhachHang[] SelectKhachHang();
        [OperationContract]
        KhachHang[] SelectKhachHangTheoTen_Limit(string name, int startIndex, int numRows);
        [OperationContract]
        KhachHang[] SelectKhachHangTheoTen(string name);
        [OperationContract]
        KhachHang[] SelectKhachHang(int startIndex,int numRows);
        [OperationContract]
        string UpdateKhachHang(KhachHang parr);
        [OperationContract]
        string DeleteKhachHang(KhachHang parr);
        [OperationContract]
        string InsertKhachHang(KhachHang parr);
        [OperationContract]
        int NumberOfKhachHang();
        [OperationContract]
        int NumberOfKhachHang(string name);
        [OperationContract]
        int SoBangDiaKhachHangDangThue(KhachHang parr);
        [OperationContract]
        KhachHang GetKhachHang(string ma);
        [OperationContract]
        KhachHang[] SearchKhachHang(string ten);
    }
}
